package com.file;

import java.io.File;
import java.io.IOException;

public class Text01 {
    public static void main(String[] args) throws IOException {
        //在当前目录下创建100个.txt文件，名字为1.txt-100.txt

        for (int i = 1; i <= 100; i++) {
            File file = new File("./text" + i + ".txt");
            file.createNewFile();
        }
        System.out.println("创建成功");
    }
}
